<html>
<head>
    <title>iisnode logs</title>
    <style type="text/css">
        body
        {
            font-family: "Trebuchet MS" , Arial, Helvetica, sans-serif;
        }
        table
        {
            border-collapse: collapse;
        }
        td, th
        {
            border: 1px solid lightgray;
            padding: 3px 7px 2px 7px;
        }
        th
        {
            text-align: left;
            padding-top: 5px;
            padding-bottom: 4px;
            background-color: Gray;
            color: #ffffff;
        }
        td.stderr
        {
            color: Red;
        }
    </style>
</head>
<body>
    <table id="logFilesTable">
        <tr>
            <th>
                Computer name
            </th>
            <th>
                PID
            </th>
            <th>
                Type
            </th>
            <th>
                Created
            </th>
            <th>
                Link
            </th>
        </tr>
    </table>
    <p id="lastUpdated"></p>
    <script type="text/javascript">

        // this is replaced with actual data at runtime by code in interceptor.js
        var logFiles = [{"file":"DK265125-1132-stderr-1377873524147.txt","computername":"DK265125","pid":1132,"type":"stderr","created":1377873524147},{"file":"DK265125-1132-stdout-1377873524123.txt","computername":"DK265125","pid":1132,"type":"stdout","created":1377873524123},{"file":"DK265125-1328-stdout-1377871931838.txt","computername":"DK265125","pid":1328,"type":"stdout","created":1377871931838},{"file":"DK265125-1420-stderr-1377873219334.txt","computername":"DK265125","pid":1420,"type":"stderr","created":1377873219334},{"file":"DK265125-1420-stdout-1377873219314.txt","computername":"DK265125","pid":1420,"type":"stdout","created":1377873219314},{"file":"DK265125-1460-stdout-1377870746982.txt","computername":"DK265125","pid":1460,"type":"stdout","created":1377870746982},{"file":"DK265125-1492-stdout-1377869231026.txt","computername":"DK265125","pid":1492,"type":"stdout","created":1377869231026},{"file":"DK265125-1560-stderr-1377865632568.txt","computername":"DK265125","pid":1560,"type":"stderr","created":1377865632568},{"file":"DK265125-1560-stdout-1377865632566.txt","computername":"DK265125","pid":1560,"type":"stdout","created":1377865632566},{"file":"DK265125-2140-stdout-1377865905093.txt","computername":"DK265125","pid":2140,"type":"stdout","created":1377865905093},{"file":"DK265125-2428-stdout-1377873188702.txt","computername":"DK265125","pid":2428,"type":"stdout","created":1377873188702},{"file":"DK265125-2684-stdout-1377865619433.txt","computername":"DK265125","pid":2684,"type":"stdout","created":1377865619433},{"file":"DK265125-2692-stderr-1377872284875.txt","computername":"DK265125","pid":2692,"type":"stderr","created":1377872284875},{"file":"DK265125-2692-stdout-1377872284862.txt","computername":"DK265125","pid":2692,"type":"stdout","created":1377872284862},{"file":"DK265125-3232-stderr-1377866259035.txt","computername":"DK265125","pid":3232,"type":"stderr","created":1377866259035},{"file":"DK265125-3232-stdout-1377866259031.txt","computername":"DK265125","pid":3232,"type":"stdout","created":1377866259031},{"file":"DK265125-3444-stderr-1377871752652.txt","computername":"DK265125","pid":3444,"type":"stderr","created":1377871752652},{"file":"DK265125-3444-stdout-1377871752640.txt","computername":"DK265125","pid":3444,"type":"stdout","created":1377871752640},{"file":"DK265125-3512-stderr-1377871690912.txt","computername":"DK265125","pid":3512,"type":"stderr","created":1377871690912},{"file":"DK265125-3512-stdout-1377871690901.txt","computername":"DK265125","pid":3512,"type":"stdout","created":1377871690901},{"file":"DK265125-3552-stdout-1377869167184.txt","computername":"DK265125","pid":3552,"type":"stdout","created":1377869167184},{"file":"DK265125-3720-stdout-1377872920818.txt","computername":"DK265125","pid":3720,"type":"stdout","created":1377872920818},{"file":"DK265125-3836-stderr-1377872437316.txt","computername":"DK265125","pid":3836,"type":"stderr","created":1377872437316},{"file":"DK265125-3836-stderr-1377872908728.txt","computername":"DK265125","pid":3836,"type":"stderr","created":1377872908728},{"file":"DK265125-3836-stdout-1377872437301.txt","computername":"DK265125","pid":3836,"type":"stdout","created":1377872437301},{"file":"DK265125-3836-stdout-1377872908710.txt","computername":"DK265125","pid":3836,"type":"stdout","created":1377872908710},{"file":"DK265125-4048-stdout-1377865148391.txt","computername":"DK265125","pid":4048,"type":"stdout","created":1377865148391},{"file":"DK265125-4048-stdout-1377871698824.txt","computername":"DK265125","pid":4048,"type":"stdout","created":1377871698824},{"file":"DK265125-4880-stdout-1377870682971.txt","computername":"DK265125","pid":4880,"type":"stdout","created":1377870682971},{"file":"DK265125-4980-stderr-1377873232791.txt","computername":"DK265125","pid":4980,"type":"stderr","created":1377873232791},{"file":"DK265125-4980-stdout-1377873232770.txt","computername":"DK265125","pid":4980,"type":"stdout","created":1377873232770},{"file":"DK265125-5092-stderr-1377873217282.txt","computername":"DK265125","pid":5092,"type":"stderr","created":1377873217282},{"file":"DK265125-5092-stdout-1377873217263.txt","computername":"DK265125","pid":5092,"type":"stdout","created":1377873217263},{"file":"DK265125-5552-stdout-1377873427058.txt","computername":"DK265125","pid":5552,"type":"stdout","created":1377873427058},{"file":"DK265125-5660-stdout-1377871065899.txt","computername":"DK265125","pid":5660,"type":"stdout","created":1377871065899},{"file":"DK265125-5760-stdout-1377865816439.txt","computername":"DK265125","pid":5760,"type":"stdout","created":1377865816439},{"file":"DK265125-5796-stderr-1377873256978.txt","computername":"DK265125","pid":5796,"type":"stderr","created":1377873256978},{"file":"DK265125-5796-stdout-1377873256956.txt","computername":"DK265125","pid":5796,"type":"stdout","created":1377873256956},{"file":"DK265125-5856-stderr-1377871741144.txt","computername":"DK265125","pid":5856,"type":"stderr","created":1377871741144},{"file":"DK265125-5856-stdout-1377871741132.txt","computername":"DK265125","pid":5856,"type":"stdout","created":1377871741132},{"file":"DK265125-5920-stdout-1377865795892.txt","computername":"DK265125","pid":5920,"type":"stdout","created":1377865795892},{"file":"DK265125-5920-stdout-1377872606802.txt","computername":"DK265125","pid":5920,"type":"stdout","created":1377872606802},{"file":"DK265125-6052-stdout-1377866271852.txt","computername":"DK265125","pid":6052,"type":"stdout","created":1377866271852},{"file":"DK265125-6056-stderr-1377873215264.txt","computername":"DK265125","pid":6056,"type":"stderr","created":1377873215264},{"file":"DK265125-6056-stdout-1377873215246.txt","computername":"DK265125","pid":6056,"type":"stdout","created":1377873215246},{"file":"DK265125-6244-stderr-1377870760321.txt","computername":"DK265125","pid":6244,"type":"stderr","created":1377870760321},{"file":"DK265125-6244-stdout-1377870760312.txt","computername":"DK265125","pid":6244,"type":"stdout","created":1377870760312},{"file":"DK265125-6268-stderr-1377869152978.txt","computername":"DK265125","pid":6268,"type":"stderr","created":1377869152978},{"file":"DK265125-6268-stderr-1377872839458.txt","computername":"DK265125","pid":6268,"type":"stderr","created":1377872839458},{"file":"DK265125-6268-stdout-1377869152972.txt","computername":"DK265125","pid":6268,"type":"stdout","created":1377869152972},{"file":"DK265125-6268-stdout-1377872839441.txt","computername":"DK265125","pid":6268,"type":"stdout","created":1377872839441},{"file":"DK265125-6372-stdout-1377873485104.txt","computername":"DK265125","pid":6372,"type":"stdout","created":1377873485104},{"file":"DK265125-6420-stderr-1377867475072.txt","computername":"DK265125","pid":6420,"type":"stderr","created":1377867475072},{"file":"DK265125-6420-stdout-1377867475067.txt","computername":"DK265125","pid":6420,"type":"stdout","created":1377867475067},{"file":"DK265125-6464-stdout-1377872891963.txt","computername":"DK265125","pid":6464,"type":"stdout","created":1377872891963},{"file":"DK265125-6528-stdout-1377873263053.txt","computername":"DK265125","pid":6528,"type":"stdout","created":1377873263053},{"file":"DK265125-6568-stdout-1377872329830.txt","computername":"DK265125","pid":6568,"type":"stdout","created":1377872329830},{"file":"DK265125-6596-stdout-1377870906388.txt","computername":"DK265125","pid":6596,"type":"stdout","created":1377870906388},{"file":"DK265125-6596-stdout-1377872766628.txt","computername":"DK265125","pid":6596,"type":"stdout","created":1377872766628},{"file":"DK265125-6612-stderr-1377867469994.txt","computername":"DK265125","pid":6612,"type":"stderr","created":1377867469994},{"file":"DK265125-6612-stdout-1377867469990.txt","computername":"DK265125","pid":6612,"type":"stdout","created":1377867469990},{"file":"DK265125-6696-stdout-1377871038863.txt","computername":"DK265125","pid":6696,"type":"stdout","created":1377871038863},{"file":"DK265125-6788-stderr-1377872821093.txt","computername":"DK265125","pid":6788,"type":"stderr","created":1377872821093},{"file":"DK265125-6788-stdout-1377872821076.txt","computername":"DK265125","pid":6788,"type":"stdout","created":1377872821076},{"file":"DK265125-6820-stderr-1377873226645.txt","computername":"DK265125","pid":6820,"type":"stderr","created":1377873226645},{"file":"DK265125-6820-stdout-1377873226626.txt","computername":"DK265125","pid":6820,"type":"stdout","created":1377873226626},{"file":"DK265125-6844-stderr-1377872526577.txt","computername":"DK265125","pid":6844,"type":"stderr","created":1377872526577},{"file":"DK265125-6844-stdout-1377872526562.txt","computername":"DK265125","pid":6844,"type":"stdout","created":1377872526562},{"file":"DK265125-6868-stdout-1377873151249.txt","computername":"DK265125","pid":6868,"type":"stdout","created":1377873151249},{"file":"DK265125-6896-stderr-1377873220515.txt","computername":"DK265125","pid":6896,"type":"stderr","created":1377873220515},{"file":"DK265125-6896-stdout-1377873220495.txt","computername":"DK265125","pid":6896,"type":"stdout","created":1377873220495},{"file":"DK265125-7088-stderr-1377865976337.txt","computername":"DK265125","pid":7088,"type":"stderr","created":1377865976337},{"file":"DK265125-7088-stdout-1377865976333.txt","computername":"DK265125","pid":7088,"type":"stdout","created":1377865976333},{"file":"DK265125-7128-stderr-1377871629315.txt","computername":"DK265125","pid":7128,"type":"stderr","created":1377871629315},{"file":"DK265125-7128-stderr-1377872060138.txt","computername":"DK265125","pid":7128,"type":"stderr","created":1377872060138},{"file":"DK265125-7128-stdout-1377871629305.txt","computername":"DK265125","pid":7128,"type":"stdout","created":1377871629305},{"file":"DK265125-7128-stdout-1377872060125.txt","computername":"DK265125","pid":7128,"type":"stdout","created":1377872060125},{"file":"DK265125-7136-stderr-1377870858331.txt","computername":"DK265125","pid":7136,"type":"stderr","created":1377870858331},{"file":"DK265125-7136-stdout-1377870858322.txt","computername":"DK265125","pid":7136,"type":"stdout","created":1377870858322},{"file":"DK265125-7172-stdout-1377866050585.txt","computername":"DK265125","pid":7172,"type":"stdout","created":1377866050585},{"file":"DK265125-7200-stdout-1377865638013.txt","computername":"DK265125","pid":7200,"type":"stdout","created":1377865638013},{"file":"DK265125-7228-stderr-1377873224573.txt","computername":"DK265125","pid":7228,"type":"stderr","created":1377873224573},{"file":"DK265125-7228-stdout-1377873224553.txt","computername":"DK265125","pid":7228,"type":"stdout","created":1377873224553},{"file":"DK265125-7364-stderr-1377872310787.txt","computername":"DK265125","pid":7364,"type":"stderr","created":1377872310787},{"file":"DK265125-7364-stdout-1377872310773.txt","computername":"DK265125","pid":7364,"type":"stdout","created":1377872310773},{"file":"DK265125-7404-stderr-1377873255940.txt","computername":"DK265125","pid":7404,"type":"stderr","created":1377873255940},{"file":"DK265125-7404-stdout-1377873255908.txt","computername":"DK265125","pid":7404,"type":"stdout","created":1377873255908},{"file":"DK265125-7476-stderr-1377873208269.txt","computername":"DK265125","pid":7476,"type":"stderr","created":1377873208269},{"file":"DK265125-7476-stdout-1377873208251.txt","computername":"DK265125","pid":7476,"type":"stdout","created":1377873208251},{"file":"DK265125-7548-stdout-1377868249180.txt","computername":"DK265125","pid":7548,"type":"stdout","created":1377868249180},{"file":"DK265125-7568-stdout-1377873532666.txt","computername":"DK265125","pid":7568,"type":"stdout","created":1377873532666},{"file":"DK265125-7788-stderr-1377872590867.txt","computername":"DK265125","pid":7788,"type":"stderr","created":1377872590867},{"file":"DK265125-7788-stdout-1377872590852.txt","computername":"DK265125","pid":7788,"type":"stdout","created":1377872590852},{"file":"DK265125-7872-stderr-1377873441727.txt","computername":"DK265125","pid":7872,"type":"stderr","created":1377873441727},{"file":"DK265125-7872-stdout-1377873441703.txt","computername":"DK265125","pid":7872,"type":"stdout","created":1377873441703},{"file":"DK265125-7880-stderr-1377872510678.txt","computername":"DK265125","pid":7880,"type":"stderr","created":1377872510678},{"file":"DK265125-7880-stdout-1377872510663.txt","computername":"DK265125","pid":7880,"type":"stdout","created":1377872510663},{"file":"DK265125-7912-stderr-1377871028975.txt","computername":"DK265125","pid":7912,"type":"stderr","created":1377871028975},{"file":"DK265125-7912-stdout-1377871028965.txt","computername":"DK265125","pid":7912,"type":"stdout","created":1377871028965},{"file":"DK265125-7980-stderr-1377873253888.txt","computername":"DK265125","pid":7980,"type":"stderr","created":1377873253888},{"file":"DK265125-7980-stdout-1377873253866.txt","computername":"DK265125","pid":7980,"type":"stdout","created":1377873253866},{"file":"DK265125-8060-stderr-1377872811053.txt","computername":"DK265125","pid":8060,"type":"stderr","created":1377872811053},{"file":"DK265125-8060-stdout-1377872811037.txt","computername":"DK265125","pid":8060,"type":"stdout","created":1377872811037},{"file":"DK265125-8104-stdout-1377871636624.txt","computername":"DK265125","pid":8104,"type":"stdout","created":1377871636624},{"file":"DK265125-8116-stdout-1377870869109.txt","computername":"DK265125","pid":8116,"type":"stdout","created":1377870869109},{"file":"DK265125-8176-stderr-1377873125721.txt","computername":"DK265125","pid":8176,"type":"stderr","created":1377873125721},{"file":"DK265125-8176-stdout-1377873125703.txt","computername":"DK265125","pid":8176,"type":"stdout","created":1377873125703},{"file":"DK265125-8184-stderr-1377873425488.txt","computername":"DK265125","pid":8184,"type":"stderr","created":1377873425488},{"file":"DK265125-8184-stdout-1377873425464.txt","computername":"DK265125","pid":8184,"type":"stdout","created":1377873425464},{"file":"DK265125-8196-stderr-1377873230682.txt","computername":"DK265125","pid":8196,"type":"stderr","created":1377873230682},{"file":"DK265125-8196-stdout-1377873230662.txt","computername":"DK265125","pid":8196,"type":"stdout","created":1377873230662},{"file":"DK265125-8204-stderr-1377865612085.txt","computername":"DK265125","pid":8204,"type":"stderr","created":1377865612085},{"file":"DK265125-8204-stdout-1377865612083.txt","computername":"DK265125","pid":8204,"type":"stdout","created":1377865612083},{"file":"DK265125-8268-stderr-1377865982617.txt","computername":"DK265125","pid":8268,"type":"stderr","created":1377865982617},{"file":"DK265125-8268-stdout-1377865982612.txt","computername":"DK265125","pid":8268,"type":"stdout","created":1377865982612},{"file":"DK265125-8284-stdout-1377873363050.txt","computername":"DK265125","pid":8284,"type":"stdout","created":1377873363050},{"file":"DK265125-8292-stderr-1377873233783.txt","computername":"DK265125","pid":8292,"type":"stderr","created":1377873233783},{"file":"DK265125-8292-stdout-1377873233763.txt","computername":"DK265125","pid":8292,"type":"stdout","created":1377873233763},{"file":"DK265125-8340-stderr-1377869146952.txt","computername":"DK265125","pid":8340,"type":"stderr","created":1377869146952},{"file":"DK265125-8340-stdout-1377869146946.txt","computername":"DK265125","pid":8340,"type":"stdout","created":1377869146946},{"file":"DK265125-8384-stderr-1377872443177.txt","computername":"DK265125","pid":8384,"type":"stderr","created":1377872443177},{"file":"DK265125-8384-stdout-1377872443162.txt","computername":"DK265125","pid":8384,"type":"stdout","created":1377872443162},{"file":"DK265125-8408-stderr-1377865804465.txt","computername":"DK265125","pid":8408,"type":"stderr","created":1377865804465},{"file":"DK265125-8408-stdout-1377865804462.txt","computername":"DK265125","pid":8408,"type":"stdout","created":1377865804462},{"file":"DK265125-8468-stderr-1377873237834.txt","computername":"DK265125","pid":8468,"type":"stderr","created":1377873237834},{"file":"DK265125-8468-stdout-1377873237813.txt","computername":"DK265125","pid":8468,"type":"stdout","created":1377873237813},{"file":"DK265125-8568-stderr-1377871774137.txt","computername":"DK265125","pid":8568,"type":"stderr","created":1377871774137},{"file":"DK265125-8568-stdout-1377871774124.txt","computername":"DK265125","pid":8568,"type":"stdout","created":1377871774124},{"file":"DK265125-8628-stderr-1377870612339.txt","computername":"DK265125","pid":8628,"type":"stderr","created":1377870612339},{"file":"DK265125-8628-stdout-1377870612332.txt","computername":"DK265125","pid":8628,"type":"stdout","created":1377870612332},{"file":"DK265125-8688-stderr-1377869225894.txt","computername":"DK265125","pid":8688,"type":"stderr","created":1377869225894},{"file":"DK265125-8688-stdout-1377869225887.txt","computername":"DK265125","pid":8688,"type":"stdout","created":1377869225887},{"file":"DK265125-8752-stderr-1377873354966.txt","computername":"DK265125","pid":8752,"type":"stderr","created":1377873354966},{"file":"DK265125-8752-stdout-1377873354942.txt","computername":"DK265125","pid":8752,"type":"stdout","created":1377873354942},{"file":"DK265125-8764-stdout-1377870618951.txt","computername":"DK265125","pid":8764,"type":"stdout","created":1377870618951},{"file":"DK265125-8852-stderr-1377873261073.txt","computername":"DK265125","pid":8852,"type":"stderr","created":1377873261073},{"file":"DK265125-8852-stdout-1377873261051.txt","computername":"DK265125","pid":8852,"type":"stdout","created":1377873261051},{"file":"DK265125-8880-stderr-1377872278161.txt","computername":"DK265125","pid":8880,"type":"stderr","created":1377872278161},{"file":"DK265125-8880-stdout-1377872278147.txt","computername":"DK265125","pid":8880,"type":"stdout","created":1377872278147},{"file":"DK265125-8956-stdout-1377872073417.txt","computername":"DK265125","pid":8956,"type":"stdout","created":1377872073417},{"file":"DK265125-9112-stdout-1377870765557.txt","computername":"DK265125","pid":9112,"type":"stdout","created":1377870765557},{"file":"DK265125-9144-stderr-1377872759854.txt","computername":"DK265125","pid":9144,"type":"stderr","created":1377872759854},{"file":"DK265125-9144-stdout-1377872759838.txt","computername":"DK265125","pid":9144,"type":"stdout","created":1377872759838},{"file":"DK265125-9212-stderr-1377871056266.txt","computername":"DK265125","pid":9212,"type":"stderr","created":1377871056266},{"file":"DK265125-9212-stdout-1377871056255.txt","computername":"DK265125","pid":9212,"type":"stdout","created":1377871056255}];
        var lastUpdated = 1377873532966;
        var date = new Date();

        date.setTime(lastUpdated);
        document.getElementById('lastUpdated').innerHTML = 'Index was last updated ' + date;

        logFiles.sort(function (a, b) {
            return b.created - a.created;
        });

        var logFilesTable = document.getElementById("logFilesTable");
        for (var i = 0; i < logFiles.length; i++) {
            var logFile = logFiles[i];
            date.setTime(logFile.created);
            var row = logFilesTable.insertRow(-1);
            var computerNameCell = row.insertCell(0);
            var pidCell = row.insertCell(1);
            var typeCell = row.insertCell(2);
            var dateCell = row.insertCell(3);
            var logCell = row.insertCell(4);
            computerNameCell.innerHTML = logFile.computername;
            pidCell.innerHTML = logFile.pid.toString();
            typeCell.innerHTML = logFile.type;
            typeCell.setAttribute('class', logFile.type);
            dateCell.innerHTML = date.toString();
            logCell.innerHTML = '<a href="' + logFile.file + '">log</a>';
        };

    </script>
</body>
</html>
